package main

import (
	"iristest/boot"
	"iristest/controller"
	"iristest/middleware"
)

func main() {
	boot.Fighting().
		DB(boot.NewXormAdapter()).
		Attach(middleware.NewAuthMiddleware()).
		Action("/v1", controller.NewIndexController()).
		Start(":1123")
}

/*func main() {
	app := iris.New()

	app.Get("/ping", func(ctx iris.Context) {
		ctx.JSON(iris.Map{
			"message": "pong",
		})
	})

	app.Listen(":8080")
}*/
